<script setup>
    import {onMounted, ref} from 'vue'
    //声明响应式数据
    const count=ref(0)
    function increment()
    {
        count.value++
    }
    //声明钩子函数onmounted
    onMounted(()=>{
        console.log("vue已经挂载完毕了")
    })
</script>

<template>
    <!--写html元素-->
    <button v-on:click="increment">count:{{ count }}</button>
</template>

<style>

</style>